<?php
namespace Addons\OaSystem\Model;
//use Think\Model;
use Think\Model\ViewModel;

class OaNoticeTaskReplySenderViewModel extends ViewModel{
    public $viewFields = array(
        'OaNoticeTaskReply'=>array('id','comment','fileids','noticeid','time','is_read','pid','receiver','sender'),
        'OaEmployee'=>array(
            'name'=>'receivername',
            '_on'=>'OaNoticeTaskReply.receiver=OaEmployee.id'),
        'OaEmployee2'=>array(
            'name'=>'sendername',
            '_table'=>'wp_oa_employee',
            '_as'=>'employee2',
            '_on'=>'OaNoticeTaskReply.sender=employee2.id'),
    );
}
?>